<%= javascript_include_tag "prototype", "effects", "controls", "window", "application","dragdrop"%>
<%= stylesheet_link_tag "sbstyle", :media => "all" %>
<title>修改标签</title>
<fieldset
	style="width:450px;border:4px double;border-color:#ccc;margin-top:60px;padding-top:60px;"
	align="center"><legend align="center"> <% if flash[:notice] -%><%= flash[:notice] %><%else -%>修改标签<% end -%>
</legend>
<div align="center">
<div id="load" style="width:16px;height:30px;">
</div>
</div>
<%= form_tag :controller=>"info",:action =>'update_tag',:obj_id=>@obj.id, :category_id=>@category_id %>
输入新的标签[<%= link_to_remote "?", :update => 'check',:url=>{:controller=>"index", :action => "post_tag_notice"}%>]：
<%= text_field "obj","search_tag",:size=>"40", 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%>
<div align="center">
<div style="width:250px;padding-top:20px;">
<h1>使用空格分隔标签，同时站点也会添加一些关键字作为标签</h1>
<div class="left_info_sidebar"><%= submit_tag "更新标签",:class=>"btn_mouseout",
			:onmouseover=>"this.className='btn_mouseover'",
			:onmouseout=>"this.className='btn_mouseout'",
			:onmousedown=>"this.className='btn_mousedown'",
			:onmouseup=>"this.className='btn_mouseup'", 
			:onClick=>%{$('load').innerHTML='<img src="/images/progress.gif">'}%><%= end_form_tag %></div>
<div class="right_info_sidebar"><%= form_tag%><%= submit_tag " 关  闭 ",:class=>"btn_mouseout",
			:onmouseover=>"this.className='btn_mouseover'",
			:onmouseout=>"this.className='btn_mouseout'",
			:onmousedown=>"this.className='btn_mousedown'",
			:onmouseup=>"this.className='btn_mouseup'", 
			:onClick=>"window.opener.document.getElementById('tag_"+@category_id.to_s+"_"+@obj.id.to_s+"').innerHTML='"+show_tag_list(@obj.tag_list,@category_id,6)+"';self.close();"%>
<%= end_form_tag %></div>
</div>
</div>
</fieldset>
<div id="check"></div>
